import request from '@/utils/request'

export function getDepositList(query) {
  return request({
    url: '/finance/deposit/getList',
    method: 'post',
    data: query
  })
}
export function getDepositUseable(query) {
  return request({
    url: '/finance/deposit/getAvailable',
    method: 'post',
    data: query
  })
}

export function getDepositDetail(id) {
  return request({
    url: '/finance/deposit/getDetail',
    method: 'post',
    data: id 
  })
}

export function saveDeposit(id) {
  return request({
    url: '/finance/deposit/save',
    method: 'post',
    data: id
  })
}

export function removeDepositByID(id) {
  return request({
    url: '/finance/deposit/delete',
    method: 'post',
    data: id
  })
}

export function changeDepositStatusByID(formdata) {
  return request({
    url: '/finance/deposit/change-status',
    method: 'post',
    data: formdata
  })
}

